home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor1
/
copy2to1.rpl
< prev
next >
Wrap
Text File
|
1991-09-17
|
945b
|
31 lines
%%HP: T(3);
@ COPY2TO1, copies any card in port 2 to RAM card in port 1.
@ by Joseph K Horn.
@ Short and fast: 26 bytes long; 1 second to run.
@ Download this listing as a string, then convert it to
@ a Code object with ASCI-> in Rick Grevelle's HACKIT library.
@ Ideal for the TDS bank-switching cards, because it is an exact
@ bit copier: it makes an absolutely identical copy of any card.
@ ( *EQUate Table* )
@ DOCODE = #02DCC * Code object prologue
@ SAVPTR = #0679B * push regs
@ PORT1 = #80000
@ PORT2 = #C0000
@ MOVEDOWN = #0670C * copy C.A nibs from (D0) to (D1)
@ GETPTRLOOP = #05143 * pop regs & jump back to RPL
@ ( *Begin Copy2to1* )
"CCD20 @ DOCODE
F2000 @ length = 47 nibs
8FB9760 @ GOSBVL SAVPTR
1B0000C @ D0=HEX PORT2
1F00008 @ D1=HEX PORT1
3400004 @ LC(5) 128*2*1024
8FC0760 @ GOSBVL MOVEDOWN
8D34150 @ GOVLNG GETPTRLOOP
"
@ End of Copy2to1